package ${package.Service};

import ${package.Entity}.${entity};
import ${superServiceClassPackage};
import com.easonji.common.base.query.BaseQuery;


/**
 * <p>
 * ${table.comment!} 服务类
 * </p>
 *
 * @author ${author}
 * @since ${date}
 */

public interface ${table.serviceName}  {

    /**
    * 查询${table.comment!}列表
    *
    * @param baseQuery ${table.comment!}列表查询条件
    *
    * @return ${table.comment!}列表
    */
    Object queryList(BaseQuery baseQuery);

    /**
    * 根据${table.comment!}ID，查询${table.comment!}信息
    *
    * @param ${table.fields[0].propertyName} ${table.comment!}ID
    *
    * @return ${table.comment!}信息
    */
    Object queryRowById(Integer ${table.fields[0].propertyName});

    /**
    * 添加 ${table.comment!}
    *
    * @param ${table.entityPath} ${table.comment!}表单
    * @return 添加结果
    */
    Integer save(${entity} ${table.entityPath});

    /**
    * 修改 ${table.comment!}
    *
    * @param ${table.entityPath}  ${table.comment!}表单
    * @return 修孜结果
    */
    Integer  update(${entity} ${table.entityPath});

    /**
    * 删除 ${table.comment!}
    *
    * @param ${table.fields[0].propertyName}  ${table.comment!}表单
    * @return 删除结果
    */
    Integer  delete(Integer ${table.fields[0].propertyName});

}
